<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of AdminController
 *
 * @author talapaku
 */
class AdminController extends ApplicationController{
    private $appfolder='admin';
    
    public function index(){
        $this->view($this->appfolder,'index');
    }
    
//    public function controllers(){
//        $this->view($this->appfolder,'index');
//    }
//    public function models(){
//        $this->view($this->appfolder,'index');
//    }
//    public function views(){
//        $this->view($this->appfolder,'index');
//    }

    public function testpage(){
        $this->view($this->appfolder,$_REQUEST['page']);
    }
    
    
    /* custom functions */
    public function movies(){
        $this->variables['sidebar_highlight']='Movies';
        $this->view($this->appfolder,'movies');
    }
    public function users(){
        $this->variables['sidebar_highlight']='Users';
        $this->view($this->appfolder,'users');
    }
    public function actors(){
        $this->variables['sidebar_highlight']='Actors';
        $this->view($this->appfolder,'actors');
    }
    
}
?>